package com.cuc.util;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:jdbc.properties")
public class jdbcConfig {

    @Value("${jdbc.username}")
    private String username;
    @Value("${jdbc.pwd}")
    private String password;

    public void getData(){
        System.out.println(username + " " + password);
    }
}
